package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品管理对象 product
 * 
 * @author GGJ
 * @date 2024-05-20
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品编码 */
    private Long id;

    /** 产品名 */
    @Excel(name = "产品名")
    private String name;

    /** BOM编码 */
    @Excel(name = "BOM编码")
    private Long bomId;

    /** 工艺编码 */
    @Excel(name = "工艺编码")
    private Long techId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setBomId(Long bomId) 
    {
        this.bomId = bomId;
    }

    public Long getBomId() 
    {
        return bomId;
    }
    public void setTechId(Long techId) 
    {
        this.techId = techId;
    }

    public Long getTechId() 
    {
        return techId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("bomId", getBomId())
            .append("techId", getTechId())
            .append("remark", getRemark())
            .toString();
    }
}
